package com.qifan.alb2b.service.resource;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.qifan.alb2b.util.Page;

/**
 * 资源表格
 * 
 * @author hc24
 * 
 */
public class ResTable {
	/** 表头，如购物地点、时间段、价格/人、详细介绍 */
	private String[] header;
	/** 具体每行的分页数据 rows:List<Map<String, Object>> */
	private Page page;
	/** 单选or多选 */
	private boolean singleSelect;
	/** 备注信息 */
	private List<NameValue> remarkList=new ArrayList<NameValue>();

	public String[] getHeader() {
		return header;
	}

	public void setHeader(String[] header) {
		this.header = header;
	}

	public Page getPage() {
		return page;
	}

	public void setPage(Page page) {
		this.page = page;
	}

	public boolean isSingleSelect() {
		return singleSelect;
	}

	public void setSingleSelect(boolean singleSelect) {
		this.singleSelect = singleSelect;
	}

	public List<NameValue> getRemarkList() {
		return remarkList;
	}

	public void setRemarkList(List<NameValue> remarkList) {
		this.remarkList = remarkList;
	}

	public void addRemark(String name,String value){
		NameValue nv=new NameValue();
		nv.setName(name);
		nv.setValue(value);
		this.remarkList.add(nv);
	}
}
